﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity
{
    public abstract class HasKey
    {
        [Key]
        public string Id { get; set; }
    }
    public abstract class BaseEnity : HasKey
    {
        [MaxLength(128)]
        public string CreateOn { get; set; }
        [MaxLength(128)]
        public string UpdateOn { get; set; }
        [MaxLength(100)]
        public string CreateBy { get; set; }
        [MaxLength(100)]
        public string UpdateBy { get; set; }
        public bool IsDelete { get; set; }
    }
    public abstract class BaseUserEnity : BaseEnity
    {
        [MaxLength(50)]
        public string BaseUserId { get; set; }
    }
}
